package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收货订单明细对象 wms_receipt_order_detail
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class WmsReceiptOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 明细ID */
    private Long detailId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long itemId;

    /** 商品编码（前端传入，不存储到数据库） */
    private String itemCode;

    /** 商品名称（关联查询获取，不存储到数据库） */
    private String itemName;

    /** SKU编码（与itemCode相同，前端兼容性） */
    private String skuCode;

    /** SKU名称（与itemName相同，前端兼容性） */
    private String skuName;

    /** 预期数量 */
    @Excel(name = "预期数量")
    private BigDecimal expectedQty;

    /** 实收数量 */
    @Excel(name = "实收数量")
    private BigDecimal actualQty;

    /** 收货数量（前端传入，用于收货确认） */
    private BigDecimal receiptQty;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNo;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date productionDate;

    /** 过期日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /** 行状态：PENDING-待收货，PARTIALLY_RECEIVED-部分收货，COMPLETED-完成收货 */
    @Excel(name = "行状态", readConverterExp = "PENDING=待收货,PARTIALLY_RECEIVED=部分收货,COMPLETED=完成收货")
    private String lineStatus;

    /** 推荐库位ID（前端传入，用于收货确认） */
    private Long recommendedLocationId;

    /** 推荐库位编码（前端传入，用于收货确认） */
    private String recommendedLocationCode;

    public void setDetailId(Long detailId) 
    {
        this.detailId = detailId;
    }

    public Long getDetailId() 
    {
        return detailId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setItemId(Long itemId) 
    {
        this.itemId = itemId;
    }

    public Long getItemId() 
    {
        return itemId;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setSkuCode(String skuCode) 
    {
        this.skuCode = skuCode;
    }

    public String getSkuCode() 
    {
        return skuCode;
    }
    public void setSkuName(String skuName) 
    {
        this.skuName = skuName;
    }

    public String getSkuName() 
    {
        return skuName;
    }

    public void setExpectedQty(BigDecimal expectedQty) 
    {
        this.expectedQty = expectedQty;
    }

    public BigDecimal getExpectedQty() 
    {
        return expectedQty;
    }
    public void setActualQty(BigDecimal actualQty) 
    {
        this.actualQty = actualQty;
    }

    public BigDecimal getActualQty() 
    {
        return actualQty;
    }
    public void setReceiptQty(BigDecimal receiptQty) 
    {
        this.receiptQty = receiptQty;
    }

    public BigDecimal getReceiptQty() 
    {
        return receiptQty;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }
    public void setProductionDate(Date productionDate) 
    {
        this.productionDate = productionDate;
    }

    public Date getProductionDate() 
    {
        return productionDate;
    }
    public void setExpirationDate(Date expirationDate) 
    {
        this.expirationDate = expirationDate;
    }

    public Date getExpirationDate() 
    {
        return expirationDate;
    }
    public void setLineStatus(String lineStatus) 
    {
        this.lineStatus = lineStatus;
    }

    public String getLineStatus() 
    {
        return lineStatus;
    }
    public void setRecommendedLocationId(Long recommendedLocationId) 
    {
        this.recommendedLocationId = recommendedLocationId;
    }

    public Long getRecommendedLocationId() 
    {
        return recommendedLocationId;
    }
    public void setRecommendedLocationCode(String recommendedLocationCode) 
    {
        this.recommendedLocationCode = recommendedLocationCode;
    }

    public String getRecommendedLocationCode() 
    {
        return recommendedLocationCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailId", getDetailId())
            .append("orderNo", getOrderNo())
            .append("itemId", getItemId())
            .append("itemCode", getItemCode())
            .append("itemName", getItemName())
            .append("skuCode", getSkuCode())
            .append("skuName", getSkuName())
            .append("expectedQty", getExpectedQty())
            .append("actualQty", getActualQty())
            .append("receiptQty", getReceiptQty())
            .append("unit", getUnit())
            .append("batchNo", getBatchNo())
            .append("productionDate", getProductionDate())
            .append("expirationDate", getExpirationDate())
            .append("lineStatus", getLineStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}